package com.guo.worktool.service.impl;

import com.guo.worktool.service.NewSQLWorkToolService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class TimedTaskService {

    @Resource
    private NewSQLWorkToolService newSQLWorkToolService;

    @Scheduled(cron = "0 0 12 * * ?")
    public void delQueryStrConvertCache() {
        log.info("delQueryStrConvertCache start ~~");
        newSQLWorkToolService.delStrConvertCache();
    }
}
